/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

import java.sql.Date;

/**
 *
 * @author Morten
 */
public class Ingredient {

    private int id;
    private String name;
    private int type;
    private Date expDate;
    private String unit;
    private int stock;

    public Ingredient(int id, String name, int type, Date expDate, String unit, int stock) {
	this.id = id;
	this.name = name;
	this.type = type;
	this.expDate = expDate;
	this.unit = unit;
	this.stock = stock;
    }

    public String getName() {
	return name;
    }

    public int getType() {
	return type;
    }

    public Date getExpDate() {
	return expDate;
    }

    public String getUnit() {
	return unit;
    }

    public int getStock() {
	return stock;
    }

    @Override
    public String toString() {
	return name;
    }

    public int getId() {
	return id;
    }
}
